import BaseModal from "@/components/BaseModal";
import UserInfo from "@/pages/PersonalCenter/form";
import { useState } from "react";

const FirstLogin = () => {
  const [isModalOpen, setIsModalOpen] = useState(true);

  const handleOpen = () => setIsModalOpen(true);
  const handleClose = () => setIsModalOpen(false);

  const userInfoProps = {
    handleClose
  };
  /** 编辑信息配置 */
  const releaseProps = {
    title: "编辑基础信息",
    handleOpen,
    handleClose,
    isModalOpen,
    footer: false,
    maskClosable: false,
    ModalChildren: () => <UserInfo {...userInfoProps} />
  };
  return (
    <div>
      <BaseModal {...releaseProps} />
    </div>
  );
};

export default FirstLogin;
